# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=neatvnc
pkgver=0.8.1
pkgrel=0
pkgdesc="A liberally licensed VNC server library with a clean interface"
url="https://github.com/any1/neatvnc"
license="ISC"
arch="all"
options="!check" # no test suite
makedepends="
	aml-dev
	ffmpeg-dev
	gnutls-dev
	libdrm-dev
	libjpeg-turbo-dev
	libuv-dev
	mesa-dev
	meson
	pixman-dev
	zlib-dev
	"
subpackages="$pkgname-dbg $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/any1/neatvnc/archive/v$pkgver.tar.gz"

# secfixes:
#   0.8.1-r0:
#     - CVE-2024-42458

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
4c5701765ba78e8fbfff71054988760b5a705946798e709d6905e63ac457f4c2da72aa0866e3cb3832b9aff0722199c1fb52869373677310ba22620413ed6b03  neatvnc-0.8.1.tar.gz
"
